home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / italia / atapipnp.lha / atapi_pnp / Installa.Italiano < prev    next >
Text File  |  1996-01-16  |  16KB  |  595 lines

  1. ; ************************************************
  2. ; *
  3. ; * $VER: Install-ATAPI PnP v1.00 (07.09.95)
  4. ; *
  5. ; * Installation for Atapi Package v 1.00
  6. ; *
  7. ; * Copyright © 1995 by Georg Campana
  8. ; *
  9. ; ************************************************
  10.  
  11. ;/// Variabili
  12. ; ****************************
  13. ;       Variabili
  14. ; ****************************
  15. ;
  16.  
  17. (set DemoVersion        1) ; Demo Version
  18. (set ProductName        "ATAPI PnP ITALIAN VERSION"  )  ; product name
  19. (set ProductBaseName    "Atapi PnP")                    ; product base name
  20. (set VersionNum         "1.00 ")                     ; product version number
  21.  
  22. (set OSVersion          (/ (getversion) 65536))
  23. (set PctDone            0)
  24.  
  25. (set CPUOpts            0)    ; 0=68000,68010; 1=68020,68030,68040
  26.  
  27. (makeassign "CDPLUSPLUS" "" (safe))
  28.  
  29. (set Disk1Name                  "CDPLUSPLUS:")
  30.  
  31. (set MemSpace 1024)   ; 1K minimo di spazio necessario su disco
  32.  
  33. ;///
  34.  
  35. ;/// Proc setPkgOPts
  36. (procedure setPkgOpts
  37. ;
  38. ; ****************************
  39. ; * Wich Parts
  40. ; ****************************
  41. ;
  42.   (
  43.         (set PkgOpts
  44.                 (askoptions
  45.                         (prompt
  46.                            "Scegli le parti che vuoi installare"
  47.                            ("del pacchetto %s" ProductName)
  48.                         )
  49.                         (help
  50.                                 "Questa parte dell'installazione ti permette di scegliere quali moduli del"
  51.                                 (" pacchetto %s vuoi installare.\n" ProductName)
  52.                                 "\n"
  53.                                 "*** Atapi Device Driver\n"
  54.                                 "Questa opzione farà si che verrà installato il device"
  55.                                 " driver (cd.device )nella directory Devs: (Fondamentale)\n"
  56.                                 "\n"
  57.                                 "*** CDplusplusFS\n"
  58.                                 "Questa opzione installerà il file system proprietario"
  59.                                 " della CD++ nella directory L: (Consigliato).\n"
  60.                                 "\n"
  61.                                 "*** MAP-Mini Atapi Player\n"
  62.                                 "Questa opzione installerà una utility che permette la"
  63.                                 " riproduzione di CD-Audio anche misti.\n"
  64.                                 "\n"
  65.                                 "*** TRKDownLoad Track-Downloader\n"
  66.                                 "Questa opzione farà installare un utility che permette"
  67.                                 " il salvataggio su file di parti di tracce audio o dati.\n"
  68.                                 "\n"
  69.                                 "*** PlayCDXL\n"
  70.                                 "Questa opzione installerà un utility che permette la"
  71.                                 " riproduzione in tempo reale di film CDXL.\n"
  72.                                 "\n"
  73.                                 @askoptions-help
  74.                         )
  75.                         (choices
  76.                                 ; bit position 0 -- todo & 1
  77.                                 ;
  78.                                 "Atapi Device Driver          (16 Kbytes)"
  79.  
  80.                                 ; bit position 1 -- todo & 2
  81.                                 ;
  82.                                 "CDplusplusFS - CD Filesystem (23 Kbytes)"
  83.  
  84.                                 ; bit position 2 -- todo & 4
  85.                                 ;
  86.                                 "MAP- Mini Atapi Player       ( 9 Kbytes)"
  87.  
  88.                                 ; bit position 3 -- todo & 8
  89.                                 ;
  90.                                 "TRKDownLoad- Track DownLoader(15 Kbytes)"
  91.  
  92.                                 ; bit position 4 -- todo & 16
  93.                                 ;
  94.                                 "PlayCDXL - Player Film CDXL  (30 Kbytes)"
  95.  
  96.                         )
  97.                 )
  98.         )
  99.   )
  100. )
  101. ;///
  102.  
  103. ;/// Proc setDirPath
  104.  
  105. (procedure setDirPath
  106. ;
  107. ; ****************************
  108. ; * Ask the user for a directory name.
  109. ; ****************************
  110. ;
  111. ; these variables must be defined before calling this procedure:
  112. ;    setDirPathWhy
  113. ;    setDirPathHelp
  114. ;    DirPath
  115. ;
  116. ; this procedure returns the selected directory in DirPath
  117. ;
  118.    (
  119.  
  120.        (set DirPath
  121.                (askdir
  122.                        (prompt ("Seleziona il disco sul quale installare il pacchetto  ( Normalmente SYS: )" )
  123.  
  124.                        )
  125.                        (help   "Il Pacchetto verrà installato sul disco"
  126.                                " prescelto .\n"
  127.                                "Se volete installare il pacchetto su un dischetto"
  128.                                " bootabile inserite quest'ultimo e sceglietelo"
  129.                                " dalla lista che si presenta\n"
  130.                                "\n"
  131.                                @askdir-help
  132.                        )
  133.                        (disk)
  134.                        (default "SYS:")
  135.                )
  136.        )
  137.  
  138.  
  139.  
  140.    )
  141. )
  142. ;///
  143.  
  144. ;/// Proc AskFsIcon
  145. ;
  146. ;
  147. (procedure AskFsIcon
  148. ;
  149. ; This procedure ask of wich cd Icon you want to install with wich Name
  150. ; It requires initialization of variables:
  151. ;
  152. ; In "DefaultIcon" ci deve essere quella accesa di default
  153. ; Ridà in "IconChoose" qual icona
  154. ; 0 nessuna - 1 AmiCDFilesystem
  155. ; 2 AmiCDFS - 3 CDfilesystem - 4 CDplusplusFS
  156. ;
  157.   (
  158.     (set IconChoose
  159.      
  160.            (askchoice
  161.                 (prompt "Scegli per quale CD-Filesystem installare l'icona")
  162.                 (help
  163.                         "Potete scegliere per quale filesystem"
  164.                         " installare il pacchetto.\n"
  165.                         "Nel caso che abbiate installato il"
  166.                         " CDpluplusFS , scegliete quest'ultimo.\n"
  167.                         "\n"
  168.                         "Se il filesystem in vostro possesso"
  169.                         " non è presente tra quelli nella lista"
  170.                         " scegliete -Nessuno- e modificate nei"
  171.                         " tooltype dell'icona del vostro device"
  172.                         " CD la voce Device con\nDevice=cd.device\n"
  173.                         "e la voce Unit con\nUnit=0\n"
  174.                         @askchoice-help
  175.                 )
  176.                 (choices
  177.                         "-Nessuno"
  178.                         "-AmiCDFileSystem - by Nicola Salmoria"
  179.                         "-cdrom-handler   - by Frank Munkert"
  180.                         "-CDFileSystem    - by CBM Commodore"
  181.                         "-CDplusplusFS    - by CD++"
  182.                 )
  183.                 (default DefaultIcon)
  184.            )
  185.     )
  186.   )
  187. )
  188. ;///
  189.  
  190. ;/// Proc GetDevName
  191. ;
  192. ;  in DevName si ritrova il nome da usare per l'icona
  193. ;
  194.  
  195.  
  196. (procedure GetDevName
  197.    
  198.    (
  199.      (set DevName
  200.            (askstring
  201.                      (prompt "Scrivi il nome per il device CD-Rom senza i due punti\nEs. CD0")
  202.                      (help
  203.                              "Il nome scelto sarà quello del"
  204.                              " Device fisico\n"
  205.                              "E' conveniente non scegliere"
  206.                              " nomi troppo lunghi\n"
  207.                              "\nE' consigliabile CD0 o CD1 ecc."
  208.                              " dato che molti programmi cercano"
  209.                              " questo nome\n"
  210.                      )
  211.                      (default "CD0")
  212.            )
  213.      )
  214.    )
  215. )
  216. ;///
  217.  
  218. ;/// Proc AskAutoMount
  219. ;
  220. ;
  221. (procedure AskAutoMount
  222. ;
  223. ; Chiede se l'icona deve essere inserita nel devs Dosdrivers o nel
  224. ; storage dosdrivers
  225. ;
  226.   (
  227.     (set AutoMount
  228.      
  229.            (askbool
  230.                 (prompt "Vuoi che il device Atapi venga montato"
  231.                         " automaticamente ad ogni riavvio ,od"
  232.                         " a ogni accensione ?"
  233.                 )
  234.                 (help
  235.                         "Rispondendo positivamente l'icona del"
  236.                         " device verrà posta nel cassetto:\n"
  237.                         "Devs:Dosdrivers\n"
  238.                         "In questo modo il lettore CD-ROM sarà disponibile"
  239.                         " ad ogni riavvio o accensione della macchina\n\n"
  240.                         "Altrimemti in: Storage:DosDrivers\n"
  241.                         "ed il lettore sarà utilizzabile solo dopo aver cliccato due volte sulla sua Icona"
  242.                 )
  243.                 (choices
  244.                         "Monta al Riavvio"
  245.                         "No,Montaggio manuale"
  246.                 )
  247.                 (default 1)
  248.            )
  249.     )
  250.   )
  251. )
  252. ;///
  253.  
  254.  
  255. ; *************************************************************************
  256. ; *                         ACTUAL START OF SCRIPT
  257. ; *
  258. ; * Ask all questions for the user now, do all of the work later.
  259. ; *************************************************************************
  260. ;
  261. ;/// MAIN SCRIPT
  262. (onerror
  263.  
  264. )
  265. ; ****************************
  266. ;  Check for OS Version
  267. ; ****************************
  268.  
  269. (if (= DemoVersion 1)
  270.     (message "\n" "\n"
  271.              "Attenzione: Questa è una versione DEMO\n"
  272.              "del Pacchetto Atapi PnP !\n"
  273.              "PUOI RIDISTRIBUIRE IL DISCO\n"
  274.              "COMPLETO A CHIUNQUE (tranne ai Crakker)" "\n"
  275.              "\n" "\n" "\n"
  276.              "Atapi Plug'n Play is Copyright by \n"
  277.              "Georg Campana & Marco Campinoti ©1994"
  278.              (help "Per avere la versione registrata , completamente funzionante leggete il manuale o chiamate : 0565/850621 e 0565/853005")
  279.     )
  280.  
  281.     (message "\n" "\n"
  282.              "Attenzione: Questa è la versione Registrata\n"
  283.              "del Pacchetto Atapi PnP !\n"
  284.              "E' VIETATO RIDISTRIBUIRE QUALSIASI FILE\n"
  285.              "PRESENTE IN QUESTO DISCHETTO" "\n"
  286.              "( I file sono contrassegnati )\n" "\n" "\n"
  287.              "Atapi Plug'n Play is Copyright by \n"
  288.              "Georg Campana & Marco Campinoti ©1994"
  289.              (help "Se volete fare registrare chiamate: 0565/850621 o 0565/853005")
  290.     )
  291. )
  292.  
  293.  
  294. ; ****************************
  295. ; ****************************
  296. ;
  297.  
  298. (set DirPath "SYS:")
  299.  
  300. (setDirPath)
  301.  
  302. (set @default-dest DirPath)
  303.  
  304. (set devdest  (tackon @default-dest "Devs"))
  305. (set fsdest   (tackon @default-dest "L"))
  306. (set utildest (tackon @default-dest "Utilities"))
  307.  
  308.  
  309. (setPkgOpts)
  310.  
  311. (set DefaultIcon 0)
  312.  
  313. (if (= (exists (tackon fsdest "AmiCDFileSystem")) 1)
  314.     (set DefaultIcon 1)
  315. )
  316.  
  317. (if (= (exists (tackon fsdest "cdrom-handler")) 1)
  318.     (set DefaultIcon 2)
  319. )
  320.  
  321. (if (= (exists (tackon fsdest "CDFileSystem")) 1)
  322.     (set DefaultIcon 3)
  323. )
  324.  
  325. (if (IN PkgOpts 1)
  326.     (set DefaultIcon 4)
  327. )
  328.  
  329. (AskFsIcon)
  330.  
  331. (select IconChoose
  332.    (set FsName 0)
  333.    (set FsName "AmiCDFS")
  334.    (set FsName "AmiCDHandler")
  335.    (set FsName "CbmCDFS")
  336.    (set FsName "CDplusplusFS")
  337. )
  338.  
  339.  
  340. (set AutoMount 1)
  341. (set DevName "CD0")
  342.  
  343. (if (> @user-level 1)
  344.  
  345.     (if (<> IconChoose 0)
  346.         (
  347.          (GetDevName)
  348.          (AskAutoMount)
  349.         )
  350.     )
  351. )
  352.  
  353. (if (= AutoMount 1)
  354.     (set Icondest  (tackon @default-dest "Devs"))
  355.     (set Icondest  (tackon @default-dest "Storage"))
  356. )
  357.  
  358.  
  359.  
  360.  
  361.  
  362. (if (IN PkgOpts 0)
  363.     (set MemSpace (+ MemSpace 16000))
  364. )
  365. (if (IN PkgOpts 1)
  366.     (set MemSpace (+ MemSpace 23000))
  367. )
  368. (if (IN PkgOpts 2)
  369.     (set MemSpace (+ MemSpace  9000))
  370. )
  371. (if (IN PkgOpts 3)
  372.     (set MemSpace (+ MemSpace 30000))
  373. )
  374. (if (IN PkgOpts 4)
  375.     (set MemSpace (+ MemSpace 14000))
  376. )
  377. (if (<> IconChoose )
  378.     (set MemSpace (+ MemSpace 1000))
  379. )
  380.  
  381. (if (< (getdiskspace DirPath) MemSpace)
  382.     (if(> (getdiskspace DirPath) 0)
  383.        (
  384.           (abort "ATTENZIONE: Lo spazio disponibile\n"
  385.                  ("sul disco %s\n" DirPath)
  386.                  ("è di soli %ld bytes\n" (getdiskspace DirPath) )
  387.                  ("e ne servono almeno %ld\n" MemSpace)
  388.                  "\n"
  389.                  "Rilanciate l'icona di Installazione\n"
  390.                  "e selezionate meno utility , oppure\n"
  391.                  "cancellate qualche file dal vostro\n"
  392.                  ("disco %s\n" DirPath)
  393.           )
  394.        )
  395.     )
  396. )
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411. ; if bit position 0 is on  Installa device
  412. (if (IN PkgOpts 0)
  413.      (
  414.  
  415.         
  416.         (if (< (exists devdest (noreq)) 2)
  417.  
  418.             (makedir devdest
  419.                (prompt "Creo una directory -Devs-")
  420.                (infos)
  421.             )
  422.         )
  423.  
  424.  
  425.         (copylib
  426.             (prompt "Installo Device Driver")
  427.             (source (tackon Disk1Name "devs/cd.device"))
  428.             (dest devdest)
  429.             (optional force)
  430.         )
  431.         
  432.  
  433.      )
  434. )
  435. ; if bit position 1 is on Installa FileSystem
  436. (if (IN PkgOpts 1)
  437.      (
  438.  
  439.         
  440.         (if (< (exists fsdest (noreq)) 2)
  441.  
  442.             (makedir fsdest
  443.                (prompt "Creo una directory -L-")
  444.             )
  445.         )
  446.  
  447.  
  448.         (copylib
  449.             (prompt "Installo FileSystem della CD++")
  450.             (source (tackon Disk1Name "l/CDplusplusFS"))
  451.             (dest fsdest)
  452.             (optional force)
  453.         )
  454.         
  455.  
  456.      )
  457. )
  458.  
  459. ; if bit position 2 is on Installa MAP
  460. (if (IN PkgOpts 2)
  461.      (
  462.  
  463.         
  464.         (if (< (exists utildest (noreq)) 2)
  465.  
  466.             (makedir utildest
  467.                (prompt "Creo una directory -Utilities-")
  468.                (infos)
  469.             )
  470.         )
  471.  
  472.  
  473.         (copyfiles
  474.             (prompt "Installo Mini Atapi Player")
  475.             (source (tackon Disk1Name "utilities/MAP"))
  476.             (dest utildest)
  477.             (infos)
  478.             (optional force)
  479.         )
  480.         
  481.  
  482.      )
  483. )
  484.  
  485. ; if bit position 3 is on Installa TRKDownLoad
  486. (if (IN PkgOpts 3)
  487.      (
  488.  
  489.         
  490.         (if (< (exists utildest (noreq)) 2)
  491.  
  492.             (makedir utildest
  493.                (prompt "Creo una directory -Utilities-")
  494.                (infos)
  495.             )
  496.         )
  497.  
  498.  
  499.         (copyfiles
  500.             (prompt "Installo TrkDownLoader")
  501.             (source (tackon Disk1Name "utilities/TRKDownLoad"))
  502.             (dest utildest)
  503.             (infos)
  504.             (optional force)
  505.         )
  506.         
  507.  
  508.      )
  509. )
  510.  
  511. ; if bit position 4 is on Installa PlayCDXL
  512. (if (<> DemoVersion 1)
  513.    (if (IN PkgOpts 4)
  514.         (
  515.  
  516.            
  517.            (if (< (exists utildest (noreq)) 2)
  518.  
  519.                (makedir utildest
  520.                   (prompt "Creo una directory -Utilities-")
  521.                   (infos)
  522.                )
  523.            )
  524.  
  525.  
  526.            (copyfiles
  527.                (prompt "Installo PlayCDXL")
  528.                (source (tackon Disk1Name "utilities/PlayCDXL"))
  529.                (dest utildest)
  530.                (infos)
  531.                (optional force)
  532.            )
  533.            
  534.  
  535.         )
  536.    )
  537. )
  538. (if (> IconChoose 0)
  539.     (
  540.         (if (< (exists Icondest (noreq)) 2)
  541.  
  542.             (makedir Icondest
  543.                (prompt "Creo una directory Devs o Storage")
  544.                (infos)
  545.             )
  546.         )
  547.  
  548.         (set Icondest  (tackon Icondest "Dosdrivers"))
  549.          
  550.         (copyfiles
  551.             (prompt "Installo l'Icona del Device")
  552.             (source (tackon Disk1Name (tackon "Devs/Storage" FsName)))
  553.             (dest IconDest)
  554.             (newname  DevName)
  555.             (infos)
  556.             (optional force)
  557.         )
  558.  
  559.     
  560.         (if (= AutoMount 1)
  561.             ( message "\n" "\n"
  562.                    "Ad ogni riavvio del calcolatore o ad ogni\n"
  563.                    "accensione- il lettore CD-ROM verrà \"Montato\"\n"
  564.                    "automaticamente !\n"
  565.                    "\n"
  566.                    "Potete disabilitare questo automatismo\n"
  567.                    ("trascinando l'icona %s dal cassetto " DevName)
  568.                    "Devs/Dosdrivers nel cassetto Storage/Dosdrivers\n"
  569.             )
  570.             ( message "\n" "\n"
  571.                    "Potete \"Montare\"\n il lettore CD-ROM\n"
  572.                    ("cliccando semplicemente sull'Icona %s\n" DevName)
  573.                    "nel cassetto Storage/Dosdrivers\n"
  574.                    "Per abilitare il montaggio automatico\n"
  575.                    "trascinate l'Icona nel cassetto Devs/Dosdrivers"
  576.             )
  577.         )
  578.     )
  579.     ( message "\n" "\n"
  580.            "Non è stata installata alcuna Icona per\n"
  581.            "il montaggio del lettore CD-ROM .\n"
  582.            "E' necessario quindi costruirsi quest'ultima\n"
  583.            "autonomamente seguendo le istruzioni del\n"
  584.            "proprio filesystem !\n"
  585.            "\n"
  586.            "Potete anche rilanciare l'icona di installazione\n"
  587.            "e selezionare un filesystem alla richiesta\n"
  588.     )
  589.  
  590. )
  591.  
  592. (exit)
  593. ;///
  594.